package com.luyuan.crm.promotion;

import java.util.List;

import org.hibernate.criterion.Order;

import com.ruijie.foundation.annotation.DomainService;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;

@DomainService
public interface PromotionService {

    void addPromotion(Promotion promotion);

    void updatePromotion(Promotion promotion);

    void deletePromotion(String id);

    Promotion getPromotionById(String id);

    List<Promotion> findEffectivePromotion();

    Page pagedQuery(CriteriaTemplate c, int page, int pageSize, List<Order> orders);
}
